﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;
using K.Contract;

namespace K.Service
{
    /// <summary>
    /// 异常处理服务类
    /// </summary>
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,ConcurrencyMode = ConcurrencyMode.Multiple)] //多线程并发操作的最佳搭配，但需要写好共享资源管理，以免出现资源使用冲突
    public class ExceptionService : IExceptionDispose
    {
        #region IExceptionDispose 成員

        
        public void SendExceptionToServer(byte[] exceptionObject)
        {
            throw new NotImplementedException();
        }



        public double Add(double x, double y)
        {
            return x + y + 100067676;
        }

        #endregion
    }
}
